package com.dragon.tools.utils;

import com.github.binarywang.java.emoji.EmojiConverter;

/**
 * @program: flow
 * @description: 转化表情
 * @author: Bruce.Liu
 * @create: 2021-04-08 14:30
 **/
public class EmojiUtils {

    /**
     * 转化表情
     * @param content 内容
     * @return
     */
    public static String getContent(String content) {
        EmojiConverter emojiConverter = EmojiConverter.getInstance();
        content = emojiConverter.toHtml(content);//将聊天内容进行转义
        return content;
    }
}
